package com.ht.shortlink.project.common.enums;


import com.ht.shortlink.project.common.convention.errorcode.IErrorCode;

public enum ShortLinkErrorCode implements IErrorCode {
    USER_TOKEN_FAIL("A000100", "用户Token验证失败"),
    SHORT_LINK_NOT_EXIST("B000100", "短链接不存在"),
    ;



    private final String code;

    private final String message;

    ShortLinkErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}

